﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <script type="text/javascript" src="../../Content/highlighter/scripts/shCore.js"></script>
    <script type="text/javascript" src="../../Content/highlighter/scripts/shBrushCSharp.js"></script>
    <script type="text/javascript" src="../../Content/highlighter/scripts/shBrushXml.js"></script>
    <script type="text/javascript" src="../../Content/highlighter/scripts/shBrushJScript.js"></script>
    <link type="text/css" rel="stylesheet" href="../../Content/highlighter/styles/shCoreDefault.css" />
    <script type="text/javascript">SyntaxHighlighter.all();</script>
    <title></title>
</head>
<body>
    <pre class="brush:js">
    var dialog = layer.open({
                    type: 2,
                    title: '添加品牌',
                    content: '/category/ShowAdd',//可以使用url
                    anim: 0,
                    area: '500px',--也可以使用area:['500px','600px'],
                    offset: 't',--居中
                    end: function () {
                        $("#myTable").bootstrapTable("refresh");//当关闭时自动刷新bootstraptable
                    },
                    success: function() {
                        layer.iframeAuto(dialog);//自动调整大小，但是如果长度过高，则不能控制最高高度，因此没有任何用处。
                    }
                });
    </pre>
</body>
</html>